<?php

require_once('db_connection.php');

if(isset($_POST['name'])) {
  unset($_POST['c_password']);
  $_POST['added_date'] = date('Y-m-d H:i:s');
  $_POST['status'] = '0';
  pr($_POST);
   /******* start query  *********/
    $id = insert('users',$_POST);
    if($id){
      header('location:show_all_users.php');
      exit;
    }
    /******* end query  *********/
}
?>
